package com.jie.langlangmall.dto;

import com.jie.langlangmall.validator.FlagValidator;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author Jie
 * @Date 2024/11/24
 * @Email 3217998214@qq.com
 * @Description 添加品牌时的品牌参数
 */
@Data
@EqualsAndHashCode
public class PmsBrandParam {

    @NotEmpty
    @Schema(title = "品牌名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;
    @Schema(title = "品牌首字母")
    private String firstLetter;
    @Min(value = 0)
    @Schema(title = "排序字段")
    private Integer sort;
    @FlagValidator(value = {"0", "1"}, message = "厂家状态不正确")
    @Schema(title = "是否为厂家制造商")
    private Integer factoryStatus;
    @FlagValidator(value = {"0", "1"}, message = "显示状态不正确")
    @Schema(title = "是否进行显示")
    private Integer showStatus;
    @NotEmpty
    @Schema(title = "品牌logo", requiredMode = Schema.RequiredMode.REQUIRED)
    private String logo;
    @Schema(title = "品牌大图")
    private String bigPic;
    @Schema(title = "品牌故事")
    private String brandStory;

}
